<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>话题列表</title>
		<jsp:include page="/public/header-meta.jsp"></jsp:include>
<script type="text/javascript"> 
jQuery(document).ready(function() {  
  jQuery("span.timeago").timeago();  
});  
</script> 
<link rel="stylesheet" href="${pageContext.request.contextPath}/ueditor/themes/default/css/umeditor.min.css" type="text/css"></link>
   </head>
<body >
<jsp:include page="/public/header.jsp"></jsp:include>\<div id="wrap">
<div class="container" >
<div class="row">
		<div class="col-md-8">
		<div class="box" id="topics_index">
		<s:iterator value="list">
		<div class='cell topic'>
		<div class='avatar pull-left'>
			<a href="user!userDetails?users.uid=${bbsusers.uid}" class="profile_link" title="${bbsusers.uname }"> <img alt="${bbsusers.uname } "
			class="medium_avatar" src="${bbsusers.avatar}" /> </a>
				</div>
				<div class='item_title'>
					<div class='pull-right'>
						<div class='badge badge-info'></div>
					</div>
					<h2 class='topic_title'>
						<a href="reply!view?topic.tid=${tid }" >${ttopic }</a>
					</h2>
					<div class='topic-meta'>
						<a class="node">${uname }</a>
						<span class='text-muted'>•</span>
						<a href="" class="dark startbbs profile_link" title=""></a>
						<span class='text-muted'>•</span>
						<span class='timeago time' title="<fmt:formatDate value="${ttime }" pattern="yyyy-MM-dd HH:mm" />"></span>
						
						<a class="startbbs profile_link" title="">${treplyCount }/${
							tclickCount }</a> 
						<c:if test="${treplyCount!=0&&treplyCount!=null}">
						<span class="pull-right">最后一次回复：
						<span class='timeago ' title="
						<fmt:formatDate value="${tlastReply }"
						 pattern="yyyy-MM-dd HH:mm" /> ">
						</span>
						</span>
						</c:if>
					</div>
				</div>
			</div>
		</s:iterator>
		<s:if test="list.size()!=0">
			<s:include value="/public/page.jsp">
			<s:param name="actionname" value="'topic!listAll?section.sid='+#request.section.sid"></s:param>
			</s:include>
			</s:if>
		</div>
		<jsp:include page="publish.jsp"></jsp:include>
		
		</div>
	<div class="col-md-4" id="Rightbar">
	<jsp:include page="/public/right_login.jsp"></jsp:include>
 	</div>
		</div>
		
		</div>
		</div>
		<jsp:include page="/public/footer.jsp"></jsp:include>
	</body>
</html>
